package com.t249.bdqn.renting.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.io.Serializable;

@Data
@Component
@TableName(value = "ret_region")
public class RetRegion implements Serializable {

    //id
    @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableField("id")
    private Integer id;

    //区域名称
    @TableField("cityName")
    private String cityName;

    //城市id
    @TableField("address_Id")
    private Integer adderssId;

    //经度
    @TableField("region_longitude")
    private String regionLongitude;

    //维度
    @TableField("region_latitude")
    private String regionLatitude;

}
